using System;
using System.Diagnostics.Contracts;

namespace Boggle.Net.Model
{
    public sealed class SearchResult
    {
        internal SearchResult(Tray.Location[] path, string word)
        {
            Contract.Requires<ArgumentNullException>(path != null);
            Contract.Requires<ArgumentException>(!String.IsNullOrEmpty(word));

            Path = path;
            Word = word;
        }

        public Tray.Location[] Path
        {
            get; private set;
        }

        public string Word
        {
            get; private set;
        }
    }
}